import request from '@/utils/request'

// 查询营地交流列表
export function listCommonication(query) {
  return request({
    url: '/camp/commonication/list',
    method: 'get',
    params: query
  })
}

// 查询营地交流详细
export function getCommonication(commonicationId) {
  return request({
    url: '/camp/commonication/' + commonicationId,
    method: 'get'
  })
}

// 新增营地交流
export function addCommonication(data) {
  return request({
    url: '/camp/commonication',
    method: 'post',
    data: data
  })
}

// 修改营地交流
export function updateCommonication(data) {
  return request({
    url: '/camp/commonication',
    method: 'put',
    data: data
  })
}

// 删除营地交流
export function delCommonication(commonicationId) {
  return request({
    url: '/camp/commonication/' + commonicationId,
    method: 'delete'
  })
}
